import { FilterItemProps } from '@/components/PageTable';

// 项目管理页面筛选项配置
export const DepartmentFilterCfg: Array<FilterItemProps> = [
  {
    type: 'search',
    placeholder: '项目名称',
    filter: 'name',
    width: 300,
  },
  {
    type: 'select',
    placeholder: '项目类型',
    filter: 'type',
    width: 200,
    options: [],
  },
  {
    type: 'select',
    placeholder: '关联标签',
    filter: 'tags',
    filterType: 'array',
    width: 200,
    options: [
      {
        key: '协作中心',
        value: '协作中心',
      },
      {
        key: '招引单位',
        value: '招引单位',
      },
      {
        key: '落地单位',
        value: '落地单位',
      },
      {
        key: '服务单位',
        value: '服务单位',
      },
      {
        key: '落实单位',
        value: '落实单位',
      },
      {
        key: '政策单位',
        value: '政策单位',
      },
    ],
  },
  {
    type: 'select',
    placeholder: '状态',
    filter: 'status',
    width: 200,
    options: [
      {
        key: '启用',
        value: 1,
      },
      {
        key: '禁用',
        value: 0,
      },
    ],
  },
];

// 项目状态列表
export const DepartmentStatusList = [
  {
    value: 0,
    name: '禁用',
    color: '#8597A8',
    bg: 'rgba(133,151,168,0.1)',
  },
  {
    value: 1,
    name: '启用',
    color: '#00B145',
    bg: 'rgba(0,177,69,0.1)',
  },
];
